package work4;

/**
 * 农民类
 */

public class Farmer extends Role implements Attack,Treat {
    public Farmer(String name, int level, String selflntroduce) {
        super(name, level, selflntroduce);
    }
    public void mine(){
        System.out.println("我是"+this.getName()+
                "我的等级是"+this.getLevel()+getSelflntroduce());
    }

    @Override
    public void attack() {
        System.out.println("发动技能：丢石头");
    }

    @Override
    public void treat() {
        System.out.println("发动技能：妙手回春");
    }
}
